
#include <stdio.h>
#include "STLOG.h"
#include "STL_Json.h"
#include <unistd.h>
#include "STL_CURL.h"

using namespace STL;

int main(int argc, char **argv)
{
    stlog_debug("Hello World!");
    stlog_debug("----------------------------------------------------------------------");
    stlog_debug("----------------------------------------------------------------------");
    std::string url1 = "http://192.168.1.162:8089/xuean_gb28181/api/v1/dev/version";
    stlog_debug("%s", url1.c_str());
    stlog_debug("----------------------------------------------------------------------");
    std::string res1 = STL_CURL::getInstance()->stl_http_get(url1, __FILE__, __LINE__);
    stlog_debug("%s", res1.c_str());
    stlog_debug("----------------------------------------------------------------------");
    stlog_debug("----------------------------------------------------------------------");
    std::string url2 = "https://192.168.1.162:8079/xuean_gb28181/api/v1/dev/version";
    stlog_debug("%s", url2.c_str());
    stlog_debug("----------------------------------------------------------------------");
    std::string res2 = STL_CURL::getInstance()->stl_http_get(url2, __FILE__, __LINE__);
    stlog_debug("%s", res2.c_str());
    stlog_debug("----------------------------------------------------------------------");
    stlog_debug("----------------------------------------------------------------------");
    return 0;
}